

package jetbrains.buildServer.server.rest.data.change;

import jetbrains.buildServer.serverSide.BuildPromotion;
import org.jetbrains.annotations.Nullable;

/**
 * @author Yegor.Yarko
 * Date: 27/03/2018
 */
public class BuildChangeData {
  @Nullable BuildPromotion myPreviousBuild;
  @Nullable BuildPromotion myNextBuild;

  public BuildChangeData(@Nullable final BuildPromotion previousBuild, @Nullable final BuildPromotion nextBuild) {
    myPreviousBuild = previousBuild;
    myNextBuild = nextBuild;
  }

  @Nullable
  public BuildPromotion getPreviousBuild() {
    return myPreviousBuild;
  }

  @Nullable
  public BuildPromotion getNextBuild() {
    return myNextBuild;
  }
}